package com.intelligentmeterreadingsys.httpserver;

import android.content.Context;
import android.telephony.TelephonyManager;


/**
 * 获取电信天翼手机号
 * @author king
 *
 */
public class PhoneInfo {
	   //提供设备上获取通讯服务信息的入口
       private TelephonyManager telephonyManager;
       
       private HttpClientServer server;
       
       //手机卡串口号
       private String IMSI;
       
       public PhoneInfo(Context context){
    	   this.telephonyManager = (TelephonyManager) context.getSystemService(Context.TELEPHONY_SERVICE);
    	   this.server=new HttpClientServer(context);
    	   //得到手机串口号
    	   this.IMSI=telephonyManager.getSubscriberId();
       }
       
       public String getPhoneNumber(){
    	   
		return IMSI;
    	   
       }
       
       
}
